package hb.software.selectcourse.group;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import domain.BaseTreeEntity;

import hb.software.selectcourse.entity.SelectCourse;


@Entity
@Table(name = "T_GroupSelectCourse")
@NamedQueries({
		@NamedQuery(name = "GroupSelectCourse.getRoot", query = "select g from GroupSelectCourse g where g.parent is null") })
public class GroupSelectCourse extends BaseTreeEntity<GroupSelectCourse, Long> {

	private static final long serialVersionUID = 6748702632187024733L;

	@Column
	String code;

	
	/**
	 * name for product category
	 */
	@Column
	String name;

	@OneToMany
	List<SelectCourse> selectCourse;

	public String getCode() {
		return code;
	}

	public String getName() {
		return name;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
